package com.ruoyi.datastatic.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 最终价表内容对象 st_price_lastest
 * 
 * @author ruoyi
 * @date 2025-09-20
 */
public class StPriceLastest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 最终价表唯一ID */
    private Long id;

    /** 价表项目类别代码 */
    @Excel(name = "价表项目类别代码")
    private String itemClass;

    /** 价表项目名称 */
    @Excel(name = "价表项目名称")
    private String itemName;

    /** 价表项目代码 */
    @Excel(name = "价表项目代码")
    private String itemCode;

    /** 价表项目规格 */
    @Excel(name = "价表项目规格")
    private String itemSpec;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 价表项目单位 */
    @Excel(name = "价表项目单位")
    private String units;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDateTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setItemClass(String itemClass) 
    {
        this.itemClass = itemClass;
    }

    public String getItemClass() 
    {
        return itemClass;
    }

    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }

    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }

    public void setItemSpec(String itemSpec) 
    {
        this.itemSpec = itemSpec;
    }

    public String getItemSpec() 
    {
        return itemSpec;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setUnits(String units) 
    {
        this.units = units;
    }

    public String getUnits() 
    {
        return units;
    }

    public void setCreateDateTime(Date createDateTime) 
    {
        this.createDateTime = createDateTime;
    }

    public Date getCreateDateTime() 
    {
        return createDateTime;
    }

    public void setUpdateDateTime(Date updateDateTime) 
    {
        this.updateDateTime = updateDateTime;
    }

    public Date getUpdateDateTime() 
    {
        return updateDateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemClass", getItemClass())
            .append("itemName", getItemName())
            .append("itemCode", getItemCode())
            .append("itemSpec", getItemSpec())
            .append("price", getPrice())
            .append("units", getUnits())
            .append("createDateTime", getCreateDateTime())
            .append("updateDateTime", getUpdateDateTime())
            .toString();
    }
}
